package com.quwan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.quwan.anno.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
*
*
* @author quan
* @date 2021-07-28 16:34
*/
 

@Data
@Accessors(chain = true)
@TableName(value = "t_finance_data")
public class TFinanceData {
    @Excel(name = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("时间")
    @Excel(name = "时间",dateFormat = "yyyy-MM-dd")
    @TableField(value = "day")
    private LocalDate day;

    @ApiModelProperty("会员充值")
    @Excel(name = "会员充值")
    @TableField(value = "vip_money")
    private BigDecimal vipMoney;

    @ApiModelProperty("余额充值")
    @Excel(name = "余额充值")
    @TableField(value = "xing_bi_money")
    private BigDecimal xingBiMoney;

    /**
     * 提现
     */
    @ApiModelProperty("提现金额")
    @Excel(name = "提现金额")
    @TableField(value = "transfer_money")
    private BigDecimal transferMoney;

    /**
     * 发单
     */
    @ApiModelProperty("发单金额")
    @Excel(name = "发单金额")
    @TableField(value = "publish_money")
    private BigDecimal publishMoney;

    /**
     * 结算
     */
    @ApiModelProperty("结算金额")
    @Excel(name = "结算金额")
    @TableField(value = "total_money")
    private BigDecimal totalMoney;

    /**
     * 公司抽成
     */
    @ApiModelProperty("平台抽成")
    @Excel(name = "平台抽成")
    @TableField(value = "company_commission")
    private BigDecimal companyCommission;

    @ApiModelProperty("订单取消")
    @Excel(name = "订单取消")
    @TableField(value = "cancel_order")
    private BigDecimal cancelOrder;

    @ApiModelProperty("提现抽成")
    @Excel(name = "提现抽成")
    @TableField(value = "transfer_get")
    private BigDecimal transferGet;

    /**
     * 公司盈利
     */
    @ApiModelProperty("平台盈利")
    @Excel(name = "平台盈利")
    @TableField(value = "company_get")
    private BigDecimal companyGet;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    @TableField(value = "add_time")
    private Date addTime;
}